﻿@model Gateway.Console.Models.FlightModel

<tr>
    @using (Html.BeginCollectionItem("Flights", Model.Id.ToString()))
    { 
        @Html.HiddenFor(flight => flight.Id)
        @Html.HiddenFor(flight => flight.RoleId)
        <td>
            @Html.TextBoxFor(flight => flight.Weight, new { @class = "form-control" })
            @Html.ValidationMessageFor(flight => flight.Weight)
        </td>
        <td>
            @Html.TextBoxFor(flight => flight.Redirect, new { @class = "form-control full-width" })
            @Html.ValidationMessageFor(flight => flight.Redirect)
        </td>
        <td>
            @Html.TextBoxFor(flight => flight.Addresses, new { @class = "form-control" })
            @Html.ValidationMessageFor(flight => flight.Addresses)
        </td>
        <td>
            @Html.TextBoxFor(flight => flight.Users, new { @class = "form-control" })
            @Html.ValidationMessageFor(flight => flight.Users)
        </td>
        <td>
            @Html.TextBoxFor(flight => flight.Tenants, new { @class = "form-control" })
            @Html.ValidationMessageFor(flight => flight.Tenants)
        </td>
        <td>
            <a href="#" class="delete-flight-row">Delete</a>
        </td>
    }
</tr>

